From: Matthias Clasen Date: Sun, 7 Jun 2015 16:59:21 +0000 (-0400) Subject: text view: Move touch selection a little further away X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~39^2~6667 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=76836dcd813927abb404d61ad6d0a027ff7fc7de;p=gtk%2B3.0.git text view: Move touch selection a little further away Otherwise, it looks cramped, and we end up under the finger. --- diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index c96cc148fd..62dbf635b6 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -9284,6 +9284,11 @@ bubble_targets_received (GtkClipboard *clipboard, _text_window_to_widget_coords (text_view, &rect.x, &rect.y); + rect.x -= 5; + rect.y -= 5; + rect.width += 10; + rect.height += 10; + gtk_popover_set_pointing_to (GTK_POPOVER (priv->selection_bubble), &rect); gtk_widget_show (priv->selection_bubble); }